const Router = require("koa-router");
const router = new Router({ prefix: "/textfile" });
const { validator } = require("../MiddleWare/validator");
const {
  create,
  remove,
  update,
  rename,
} = require("../Controller/textfile.controller");

router.post("/", create);
router.post("/:id/off", remove);
router.post("/:id/update", update);
router.post("/:id/rename", rename);
module.exports = router;
